home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / OWLINC.PAK / OLEMDIFR.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  60 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1994, 1997 by Borland International, All Rights Reserved
  4. //
  5. //$Revision:   10.3  $
  6. //
  7. //----------------------------------------------------------------------------
  8. #if !defined(OWL_OLEMDIFR_H)
  9. #define OWL_OLEMDIFR_H
  10.  
  11. #if !defined(OWL_OLEFRAME_H)
  12. # include <owl/oleframe.h>
  13. #endif
  14. #if !defined(OWL_MDI_H)
  15. # include <owl/mdi.h>
  16. #endif
  17.  
  18. #if defined(BI_NAMESPACE)
  19. namespace OWL {
  20. #endif
  21.  
  22. // Generic definitions/compiler options (eg. alignment) preceeding the 
  23. // definition of classes
  24. #include <services/preclass.h>
  25.  
  26. //
  27. // class TOleMDIFrame
  28. // ~~~~~ ~~~~~~~~~~~~
  29. // Decorated MDI frame that supports OLE 2 using OCF
  30. //
  31. class _USERCLASS TOleMDIFrame : public TOleFrame, public TMDIFrame {
  32.   public:
  33.     TOleMDIFrame(const char far* title,
  34.                  TResId          menuResId,
  35.                  TMDIClient&     clientWnd = *new TMDIClient,
  36.                  bool            trackMenuSelection = false,
  37.                  TModule*        module = 0);
  38.  
  39.    ~TOleMDIFrame();
  40.  
  41.   protected:
  42.     TResult    DefWindowProc(uint message, TParam1 param1, TParam2 param2);
  43.     bool       EvOcAppInsMenus(TOcMenuDescr far& sharedMenu);
  44.     void       EvActivateApp(bool active, HTASK hTask);
  45.  
  46.   DECLARE_RESPONSE_TABLE(TOleMDIFrame);
  47. };
  48.  
  49. // Generic definitions/compiler options (eg. alignment) following the 
  50. // definition of classes
  51. #include <services/posclass.h>
  52.  
  53. typedef TOleMDIFrame TOleMdiFrame;
  54.  
  55. #if defined(BI_NAMESPACE)
  56. } // namespace OWL
  57. #endif
  58.  
  59. #endif  // OWL_OLEMDIFR_H
  60.